home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14880 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: EU.net!sun4nl!xs4all!falstaff
  2. From: falstaff@xs4all.nl (Falstaff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: help:what is wrong with this code?
  5. Date: 15 Apr 1996 21:51:50 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4kugdm$is3@news.xs4all.nl>
  8. References: <4krmdu$t3h@brahms.udel.edu>
  9. NNTP-Posting-Host: xs1.xs4all.nl
  10. X-Newsreader: NN version 6.5.0 #666 (NOV)
  11.  
  12. yuehong@brahms.udel.edu (Yue-hong Zheng) writes:
  13.  
  14. >#include <stdio.h>
  15.  
  16. >void quicksort(int[],int,int );
  17.  
  18. >void swap(int*,int*);
  19.  
  20. >main () {
  21. >int k;
  22. >int a[]={1,3,4,2,43,23,5,6,87,92,21};
  23. >quicksort(a,0,10);
  24. >for (k=0;k<=10;k++) {
  25. >printf("%d\n",a[k]);
  26. >}
  27. >return 0;
  28. >}
  29. [...]
  30.  
  31. What's wrong?
  32. 1. You forgot to indent your code;
  33. 2. We don't do your homework here.
  34.  
  35. Frank
  36. --
  37. Support the comp.arch.homebrew* group for home-designed digital hardware
  38. The famous GIICM now on line:  http://www.xs4all.nl/~falstaff/GIICM.html
  39. ------------------------------------------------------------------------
  40. Frank A. Vorstenbosch        +31-(70)-355 5241        falstaff@xs4all.nl
  41.